package org.sage.sdk.dada.order.aggregate;

import lombok.Getter;
import lombok.Setter;
import org.sage.sdk.dada.infrastructure.common.annotation.Aggregate;
import org.sage.sdk.dada.infrastructure.common.attributes.OriginId;
import org.sage.sdk.dada.infrastructure.common.attributes.OriginMark;
import org.sage.sdk.dada.infrastructure.common.attributes.OriginMarkNo;

import javax.validation.constraints.NotNull;

/**
 * 第三方订单
 *
 * @author 周广明
 * @version v1 2019/12/10 下午4:49
 */
@Getter
@Setter
@Aggregate
public class Origin {

    public Origin(OriginId id) {
        this.id = id;
    }

    public Origin(OriginId id, OriginMark mark, OriginMarkNo markNo) {
        this.id = id;
        this.mark = mark;
        this.markNo = markNo;
    }

    @NotNull
    OriginId id;

    OriginMark mark;

    OriginMarkNo markNo;
}
